﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/bui.css" rel="stylesheet" />
    <link href="~/Content/dpl.css" rel="stylesheet" />
    <link href="~/Content/main.css" rel="stylesheet" />
    <!--[if lte IE 9]>
    <script src="~/Scripts/respond.min.js"></script>
    <script src="~/Scripts/html5shiv.min.js"></script>
    <![endif]-->
    <!--[if gte IE 9]>
        <script src="~/Scripts/jquery-3.2.0.js"></script>
    <![endif]-->
    <script src="~/Scripts/jquery-1.8.1.min.js"></script>
    <title>重庆医药ISC耗材管理系统</title>
</head>
<body style="overflow:auto;">
    <div>
        <div class="header">

            <div class="dl-title">
                <a href="http://www.cq-p.com.cn/" title="重庆医药 http://www.cq-p.com.cn" target="_blank">

                    <span style="background:url('../img/CQP2.png') no-repeat;background-size:35px 33px">
                        <span style="padding-left:44px">重庆医药ISC耗材管理系统</span>
                    </span>
                </a>
            </div>
            <div class="dl-log">
                <span class="dl-log-user">欢迎您，@ViewBag.User</span><a href="~/Main/LogOut" title="退出系统" class="dl-log-quit">[退出]</a>
            </div>

        </div>

        <div class="content">
            <div class="dl-main-nav">

                <ul id="J_Nav" class="nav-list ks-clear">

                    @{

                        <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">首页</div></li>
                        if (ViewBag.Stock)
                        {
                            <li class="nav-item"><div class="nav-item-inner nav-order">货柜管理</div></li>
                        }
                        if (ViewBag.HardWare)
                        {
                            <li class="nav-item"><div class="nav-item-inner nav-package">硬件管理</div></li>
                        }
                        if (ViewBag.BaseInfo)
                        {
                            <li class="nav-item"><div class="nav-item-inner nav-goods">基础信息管理</div></li>
                        }
                        if (ViewBag.System)
                        {
                            <li class="nav-item"><div class="nav-item-inner nav-supplier">系统管理</div></li>
                        }

                    }
                </ul>
            </div>

            <ul id="J_NavContent" class="dl-tab-content"></ul>
        </div>
    </div>
    <script src="~/Scripts/bui.js"></script>
    <script src="~/Scripts/config.js"></script>
    <script src="~/Scripts/common/main.js"></script>
    <script src="~/Scripts/common/main-min.js"></script>
    <script>

        var tempHH=window.innerHeight;
        var hh="";
        if (typeof(tempHH)=="undefined") {
            hh="X"+window.screen.height;
        }else {
            hh=tempHH;
        }

        BUI.use('common/main',function(){
            var config = @Html.Raw( @ViewBag.Menu);
            /*
        BUI.use('common/main',function(){
            var config = [{
                id:'menu',
                homePage : 'System',
                menu:[{
                    text: '<p class="font-tree-parent">系统帮助</p>',
                    items:[
                      { id: 'System', text: '系统介绍', href: '/Main/Help', closeable: false },
                      { id: 'Support', text: '技术支持', href: '/Main/Help' },
                    ]
                }]
            },{
                id:'StockManage',
                menu:[{
                    text:'<p class=\"font-tree-parent\">入柜管理</p>',
                    items:[
                      { id: 'InstockHis', text: '入柜记录查询', href: '/Main/TempPage' }
                    ]
                },{
                    text:'<p class=\"font-tree-parent\">出柜管理</p>',
                    items:[
                     { id: 'OutstockHis', text: '出柜记录查询', href: '/Main/TempPage' }

                    ]
                },{
                    text:'<p class=\"font-tree-parent\">库存管理</p>',
                    items:[
                      { id: 'StockQuery', text: '库存查询', href: '/Main/TempPage' },
                      { id: 'Inventory', text: '盘点查询', href: '/Main/TempPage' }
                    ]
                }]
            },{
                id:'HardWare',
                menu:[{
                    text:'<p class=\"font-tree-parent\">板锁管理</p>',
                    items:[
                      { id: 'LockAddress', text: '板锁地址管理', href: '/Main/TempPage' }

                    ]
                },{
                    text : '<p class=\"font-tree-parent\">RFID管理</p>',
                    items : [
                      { id: 'RFIDSetting', text: 'RFID参数设置', href: '/Main/TempPage' }
                    ]
                }]
            },{
                id:'BaseInfo',
                menu:[{
                    text:'<p class=\"font-tree-parent\">信息维护</p>',
                    items:[
                      { id: 'Goods', text: '商品目录', href: '/Main/TempPage' },
                      { id: 'Locator', text: '货位设置', href: '/Main/TempPage' },
                      { id: 'LocatorGoods', text: '商品货位关系设置', href: '/Main/TempPage' }
                    ]
                }]
            },{
                id:'SystemManage',
                menu:[{
                    text:'<p class=\"font-tree-parent\">权限管理</p>',
                    items:[
                     { id: 'User', text: '用户管理', href: '/Main/TempPage' },
                     { id: 'Role', text: '角色管理', href: '/Main/TempPage' },
                     { id: 'UserRole', text: '用户和角色管理', href: '/Main/TempPage' },
                     { id: 'RoleAuthority', text: '角色和权限管理', href: '/Main/TempPage' },
                     { id: 'Department', text: '科室信息维护', href: '/ISC/ISCIndex/'+hh }
                    ]
                }]
        }];
       */

            //加载
            new PageUtil.MainPage({
                modulesConfig: config
            });
        });

        $(window).resize(function(){
            var height = BUI.viewportHeight(),
            subHeight = 102;
            var contentHeight = height - subHeight;
            $(".dl-second-nav").height(contentHeight);
            $("#J_menuTree>ul").height(contentHeight);
            $("#J_menuTab>div").height(contentHeight);
            $(".tab-content-container").height(contentHeight-20);
        });
    </script>

   
</body>

</html>
